home *** CD-ROM | disk | FTP | other *** search
/ 100 Plus Great Games 2 / 100PLUSV2.BIN / games / WakeRace.dxr / Internal_9_Race Over script.ls < prev    next >
Encoding:
Text File  |  2002-01-25  |  891 b   |  43 lines

  1. property pStartTime
  2. global gPlayer
  3.  
  4. on beginSprite
  5.   if gPlayer.pDamage < 100 then
  6.     sprite(420).member = member("Rank" & gPlayer.pRank)
  7.   else
  8.     sprite(420).member = member("Rank4")
  9.   end if
  10.   sprite(415).blend = 0
  11.   sprite(421).blend = 0
  12.   pStartTime = the ticks
  13.   puppetSound(3, 0)
  14.   puppetSound(5, "levelcompleteSound")
  15. end
  16.  
  17. on enterFrame me
  18.   gPlayer.update()
  19.   t_Update(gPlayer.pLocation)
  20.   e_Update(gPlayer.pLocation)
  21.   pickup_Update(gPlayer.pLocation)
  22.   p_Update()
  23.   gfx_Update(gPlayer.pLocation)
  24.   updateRanking()
  25.   sendSprite(110, #update)
  26.   if sprite(415).blend < 50 then
  27.     sprite(415).blend = sprite(415).blend + 2
  28.     sprite(421).blend = sprite(421).blend + 4
  29.   end if
  30. end
  31.  
  32. on exitFrame
  33.   go(the frame)
  34. end
  35.  
  36. on keyDown
  37.   if (the key = SPACE) and (the ticks > (pStartTime + 180)) then
  38.     pickup_ClearAllPickups()
  39.     gfx_ClearAllEffects()
  40.     go("InBetween")
  41.   end if
  42. end
  43.